/*
 * @Author: your name
 * @Date: 2022-01-19 14:52:44
 * @LastEditTime: 2022-01-19 14:55:15
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue-element-admin\src\store\modules\division.js
 */
import { divisionList,divisionOptional} from '@/api/division'

const state = {
 
}

const mutations = {
 
}

const actions = {
    divisionList({ commit }, formData) {
    return new Promise((resolve, reject) => {
        divisionList(formData).then(response => {
        // const { data } = response
        resolve(response)
      }).catch(error => {
        reject(error)
      })
    })
  },
  divisionOptional({ commit }, formData) {
    return new Promise((resolve, reject) => {
      divisionOptional(formData).then(response => {
        // const { data } = response
        resolve(response)
      }).catch(error => {
        reject(error)
      })
    })
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
